package com.fu.plugin.item;

import com.intellij.navigation.ItemPresentation;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;

public class MyItemPresentation implements ItemPresentation {
    private String name;
    public MyItemPresentation(String name){
        this.name = name;
    }

    /**
     * 搜索结果最终显示
     * @return
     */
    @Nullable
    @Override
    public String getPresentableText() {
        return name;
    }

    /**
     * 搜索结果的辅助说明
     * @return
     */
    @Nullable
    @Override
    public String getLocationString() {
        return "getLocationString";
    }

    /**
     * 搜索结果图标
     * @param b
     * @return
     */
    @Nullable
    @Override
    public Icon getIcon(boolean b) {
        return null;
    }
}
